package com.cjkj.system.api;

import com.cjkj.system.api.domain.request.APIWechatSessionReq;
import com.cjkj.system.api.factory.RemoteWechatFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 微信远程调用类
 */
@FeignClient(name = "wechat", url="https://api.weixin.qq.com", fallbackFactory = RemoteWechatFallbackFactory.class)
public interface RemoteWeChatService {

    @GetMapping("/sns/jscode2session")
    String getSessionByCode(@SpringQueryMap APIWechatSessionReq req);

}